
import java.awt.EventQueue;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextField;
import javax.swing.border.EmptyBorder;

public class SearchIncome extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1579777400559320816L;
	private JPanel contentPane;
	private JTextField textField;
	private JTextField textField_1;
	private JTextField textField_2;
	private JTextField textField_4;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					SearchIncome frame = new SearchIncome();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public SearchIncome() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 542, 400);
		this.setTitle("Search Income");
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblDate = new JLabel("Date:");
		lblDate.setBounds(10, 74, 70, 14);
		contentPane.add(lblDate);
		
		textField = new JTextField();
		textField.setBounds(150, 68, 106, 20);
		contentPane.add(textField);
		textField.setColumns(10);
		
		JLabel lblCategory = new JLabel("Category:");
		lblCategory.setBounds(309, 71, 70, 14);
		contentPane.add(lblCategory);
		
		textField_1 = new JTextField();
		textField_1.setBounds(396, 68, 106, 20);
		contentPane.add(textField_1);
		textField_1.setColumns(10);
		
		JLabel lblDescription = new JLabel("Description:");
		lblDescription.setBounds(10, 100, 70, 14);
		contentPane.add(lblDescription);
		
		textField_2 = new JTextField();
		textField_2.setBounds(150, 94, 106, 20);
		contentPane.add(textField_2);
		textField_2.setColumns(10);
		
		JLabel lblAmount = new JLabel("Amount:");
		lblAmount.setBounds(309, 97, 70, 14);
		contentPane.add(lblAmount);
		
		
		textField_4 = new JTextField();
		textField_4.setBounds(396, 94, 106, 20);
		contentPane.add(textField_4);
		textField_4.setColumns(10);
		
		JButton btnClear = new JButton("Clear");
		btnClear.setBounds(309, 146, 94, 23);
		contentPane.add(btnClear);
		
		JButton btnSubmit = new JButton("Submit");
		btnSubmit.setBounds(408, 146, 94, 23);
		contentPane.add(btnSubmit);
		
		JLabel lblIncomeList = new JLabel("Income List:");
		lblIncomeList.setBounds(10, 174, 123, 14);
		contentPane.add(lblIncomeList);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(10, 186, 492, 146);
		contentPane.add(scrollPane);
		
		JButton btnBackToIncome = new JButton("Back to Income Menu");
		btnBackToIncome.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				dispose();
				IncomeScreen page = new IncomeScreen();
				page.setVisible(true);
			}
		});
		btnBackToIncome.setBounds(309, 335, 170, 23);
		contentPane.add(btnBackToIncome);
	}

}